import {FooCommand, BarCommand} from './Commands';
import Invoker from './Invoker';
import separate from '../patternSeparator';

separate('命令模式');

let invoker = new Invoker();

invoker.setCommand(new FooCommand());
invoker.call();

invoker.setCommand(new BarCommand());
invoker.call();